package model;

//  User类表示成员
public class User {
    private int id;
    private String name;
    private String password;
    private int group_id;


    public User() {
    }

    public User(int id, String name, String password, int group_id) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.group_id = group_id;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return group_id
     */
    public int getGroup_id() {
        return group_id;
    }

    /**
     * 设置
     * @param group_id
     */
    public void setGroup_id(int group_id) {
        this.group_id = group_id;
    }

    public String toString() {
        return "User{id = " + id + ", name = " + name + ", password = " + password + ", group_id = " + group_id + "}";
    }
}
